﻿@model IList<ArticleSpecificationAttributeModel>
@{

}

@if (Model.Count > 0)
{

    foreach (var articleSpecificationAttributeModel in Model)
    {
        var randNum = Guid.NewGuid().ToString();
        <tr id="tr@randNum">
            <td class=""><span class="text-dep1">@articleSpecificationAttributeModel.SpecificationAttributeName</span></td>
            <td>
                <select style="width:260px" class="form-control spaoption-select">
                    @foreach (var specificationAttributeOption in articleSpecificationAttributeModel.SpecificationAttributeOptions)
                    {
                        <option @(specificationAttributeOption.select ? "selected" : "") value="@specificationAttributeOption.id">@specificationAttributeOption.name</option>
                    }
                </select>
            </td>
            <td class="" style="display:none;"><input type="checkbox" @(articleSpecificationAttributeModel.AllowFiltering ? "checked" : "") class="check-box s_allowfiltering"></td>
            <td class="" style="display:none;"><input type="checkbox" @(articleSpecificationAttributeModel.ShowOnArticlePage ? "checked" : "") class="check-box s_showonarticlepage"></td>
            <td class="" style="display:none;"><input type="text" value="@articleSpecificationAttributeModel.DisplayOrder" class="form-control s_displayorder"></td>

        </tr>
    }

}

